package com.open.capacity.forum.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 蒋鑫
 * @version 2021/3/8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public class ResourcesDownRecord implements Serializable {
    /**
     * 下载记录id
     */
    @TableId(value = "downid", type = IdType.AUTO)
    private Integer downid;

    /**
     * 资源id
     */
    private Integer fileid;

    /**
     * 用户id
     */
    private Long userid;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cretim;

    private static final long serialVersionUID = 1L;
}
